import Ax from './api';

export default {
  genCommAdd: (param = {}) => Ax.put(`/generalCommand/add`, param),
  genCommEdit: (param = {}) => Ax.put(`/generalCommand/edit`, param),
  genCommDelete: (query = {}) => Ax.delete(`/generalCommand/delete?_id=${query._id}`),
  genCommList: (param = {}) => Ax.post(`/generalCommand/list`, param),
  genCommExport: () => Ax.get(`/generalCommand/export`),
  genCommAll: (param = {}) => Ax.post(`/generalCommand/all`, param),
  genCommDetail: (query = {}) => Ax.get(`/generalCommand/detail?_id=${query._id}`),
};
